<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改审批')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-approve-edit" th:object="${sysApprove}">
            <input name="approveId" th:field="*{approveId}" type="hidden">
            <input name="procurementDeclareId" th:field="*{procurementDeclareId}" class="form-control" type="hidden" >
            <input name="purchasingUnitId" th:field="*{purchasingUnitId}" class="form-control" type="hidden">
            <input name="userInfoId" th:field="*{userInfoId}" class="form-control" type="hidden">
            <input name="purchasePlanId" th:field="*{purchasePlanId}" class="form-control" type="hidden">
            <input name="attribute2" th:field="*{attribute2}" class="form-control" type="hidden">
            <input name="attribute3" th:field="*{attribute3}" class="form-control" type="hidden">

            <div class="form-group">    
                <label class="col-sm-3 control-label">审批结果：</label>
 <!--0 未审批 1 审批通过 -1 审批不通过 -2 审批作废-->
                    <div class="col-sm-8">
                        <label class="radio-box"> <input type="radio" name="cgbApproveResult" value=1 /> 同意 </label>
                        <label class="radio-box"> <input type="radio" name="cgbApproveResult" value=-1 /> 不同意 </label>
                        <label class="radio-box"> <input type="radio" name="cgbApproveResult" value=-2 /> 作废 </label>
                    </div>

            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购办审批意见：</label>
                <div class="col-sm-8">
                    <textarea id="cgbApproveSuggestion" name="cgbApproveSuggestion" class="form-control"></textarea>

                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/approve";
        $("#form-approve-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-approve-edit').serialize());
            }
        }

    </script>
</body>
</html>